package com.iafme.utils;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.asymmetric.RSA;

import java.security.PublicKey;

/**
 * @author summer
 * @version 1.0
 * @date 2025/2/25 17:31
 */
public class RSAUtils {
    public static void main(String[] args) {
        RSA rsa = SecureUtil.rsa();
        String publicKey = rsa.getPublicKeyBase64();
        String privateKeyBase64 = rsa.getPrivateKeyBase64();

        System.out.println(publicKey);
        System.out.println(privateKeyBase64);

    }
}
